package com.medaxis.hpams.sso.utils;

public class SqlUtil {
    public static String SQL_PATTERN = "[a-zA-Z0-9_\\ \\,]+";

    public SqlUtil() {
    }

    public static String escapeOrderBySql(String value) {
        return StringUtils.isNotEmpty(value) && !isValidOrderBySql(value) ? "" : value;
    }

    public static boolean isValidOrderBySql(String value) {
        return value.matches(SQL_PATTERN);
    }
}